package com.camp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.camp.mapper.ProjectMapper;
import com.camp.domain.Project;
import com.camp.service.IProjectService;

/**
 * 营地项目Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class ProjectServiceImpl implements IProjectService 
{
    @Autowired
    private ProjectMapper projectMapper;

    /**
     * 查询营地项目
     * 
     * @param projectId 营地项目主键
     * @return 营地项目
     */
    @Override
    public Project selectProjectByProjectId(String projectId)
    {
        return projectMapper.selectProjectByProjectId(projectId);
    }

    /**
     * 查询营地项目列表
     * 
     * @param project 营地项目
     * @return 营地项目
     */
    @Override
    public List<Project> selectProjectList(Project project)
    {
        return projectMapper.selectProjectList(project);
    }

    /**
     * 新增营地项目
     * 
     * @param project 营地项目
     * @return 结果
     */
    @Override
    public int insertProject(Project project)
    {
        return projectMapper.insertProject(project);
    }

    /**
     * 修改营地项目
     * 
     * @param project 营地项目
     * @return 结果
     */
    @Override
    public int updateProject(Project project)
    {
        return projectMapper.updateProject(project);
    }

    /**
     * 批量删除营地项目
     * 
     * @param projectIds 需要删除的营地项目主键
     * @return 结果
     */
    @Override
    public int deleteProjectByProjectIds(String[] projectIds)
    {
        return projectMapper.deleteProjectByProjectIds(projectIds);
    }

    /**
     * 删除营地项目信息
     * 
     * @param projectId 营地项目主键
     * @return 结果
     */
    @Override
    public int deleteProjectByProjectId(String projectId)
    {
        return projectMapper.deleteProjectByProjectId(projectId);
    }
}
